<?php
/**
 * Created by JetBrains PhpStorm.
 * User: SonTung
 * Date: 07/12/2012
 * Time: 09:58
 * To change this template use File | Settings | File Templates.
 */
class sidebarNavWidget extends CWidget {

    public function init() {

    }
    public function run() {
        $module = Yii::app()->controller->module;
        if($module) {
            $moduleName = $module->getName();
        } else {
            $moduleName = null;
        }
        $translate=Yii::app()->translate;
        $this->render('viewSidebarNav',array('translate'=>$translate,'moduleName'=>$moduleName));
    }
}